package com.frxuexi.park2210.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.frxuexi.park2210.R
import com.frxuexi.park2210.databinding.ActivityParkVractivityBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView
import dagger.hilt.android.AndroidEntryPoint

@Route(path = "/app/ParkVRActivity")
@AndroidEntryPoint
class ParkVRActivity : AppCompatActivity() {
    lateinit var binding: ActivityParkVractivityBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding=ActivityParkVractivityBinding.inflate(layoutInflater)
        setContentView(binding.root)

        var optios=VrPanoramaView.Options()
        optios.inputType=VrPanoramaView.Options.TYPE_MONO//360水平旋转

        binding.vr.loadImageFromBitmap(BitmapFactory.decodeResource(resources,R.drawable.ddd),optios)


    }
}